package com.example.test.advice.第八章_异常.建议111_采用异常链传递异常;

public class MyDemoException extends Exception{

    //定义异常原因
    public MyDemoException(String message) {
        super(message);
    }

    //定义异常原因，并携带原始异常
    public MyDemoException(String message, Throwable cause) {
        super(message, cause);
    }

    //保留原始异常信息
    public MyDemoException(Throwable cause) {
        super(cause);
    }
}
